﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace FlyingClub.Models
{
    public class Contact
    {
        [Required(ErrorMessage="Un nom est requis")]
        public string Name { get; set; }
        
        [Required(ErrorMessage="Un email est requis")]
        [DataType(DataType.EmailAddress)]
        public string Email { get; set; }

        [Required(ErrorMessage="Un sujet est requis")]
        public string Subject { get; set; }

        [Required(ErrorMessage="Du contenu est requis")]
        public string Content { get; set; }
    }
}